﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html>
<head>
<title>Template Test</title>
<link rel="stylesheet" href="../../resources/test.css" type="text/css" />
<script>
<!--
    var ar = [];

    var PROTOTYPE     = '../lib/prototype.js';
    var EFFECTS       = '../lib/effects.js';
    var UNIT_TEST     = '../lib/unittest.js';
    var SRC_DIRECTORY = '../src/';
    var TARGET_CODES  = [
        'oembed.js',
    ];

    document.writeln('<script src=\"'+ PROTOTYPE +'\"><\/script>');
    document.writeln('<script src=\"'+ EFFECTS +'\"><\/script>');
    document.writeln('<script src=\"'+ UNIT_TEST +'\"><\/script>');
    for(var i = 0 ,T , l = TARGET_CODES.length;i<l; i++){
        T = SRC_DIRECTORY + TARGET_CODES[i];
        document.writeln('<script src=\"'+ T +'\"><\/script>');
    }

-->
</script>

</head>
<body>
<div id="testlog"></div>
<script language="javascript" type="text/javascript">
<!--
(function(){
    var Aspect = {
        weave:function(dst,src){
            $H(src).each(function(e){
                var key = e[0],value = e[1];
                if( Object.isFunction(value) && 
                    Object.isFunction(dst[key]) ){
                    dst[key]=dst[key].wrap(value);
                }
            });
        }
    };
    var logger = function(name,proceed){
        var args = $A(arguments);
        args.shift();args.shift();
        console.log(args);
        var ret=proceed.apply(this,args);
        console.log(name+':'+this.storedName+":"+ret);
        return ret;
    };

})();

document.observe('dom:loaded',function(){

new Test.Unit.Runner({
    testNamespace:function(){with(this){
        assert(oEmbed,'oEmbed');
        assert(oEmbed.Multi,'oEmbed.Multi');
        assert(oEmbed,Parser,'oEmbed.Parser');
        assert(oEmbed.Parser.Photo,'oEmbed.Parser.Photo');
        assert(oEmbed.Parser.Video,'oEmbed.Parser.Photo');
        assert(oEmbed.Parser.Link,'oEmbed.Parser.Photo');
        assert(oEmbed.Parser.Image,'oEmbed.Parser.Photo');
        //assert(oEmbed.Parser.Link,'oEmbed.Parser.Photo');
    }},
    testParser :function(){with(this){
        
    }}
});
});

-->
</script>
</html>
